package cn.danger.com.util;

import java.util.ArrayList;
import java.util.List;

import cn.danger.com.model.entity.Memo;
import cn.danger.com.model.entity.Schedule;

/**
 * Created by 俊 on 2017/1/3.
 */
public class SortUtil {

    public static List<Memo> sortMemos(List<Memo> origin_memos) {
        List<Memo> memos = new ArrayList<>();
        for (int i = origin_memos.size() - 1; i >= 0; i--) {
            memos.add(origin_memos.get(i));
        }
        return memos;
    }

    public static List<Schedule> sortSchedules(List<Schedule> origin_schedules) {
        List<Schedule> schedules = new ArrayList<>();
        for (int i = origin_schedules.size() - 1; i >= 0; i--) {
            schedules.add(origin_schedules.get(i));
        }
        return schedules;
    }

}
